﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace QueuesLib {
    [DataContract]
    public class Counter {

        [DataMember(IsRequired=true, Order=1)]
        public int SubjectId { get; set; }

        [DataMember(IsRequired = true, Order = 2)]
        public int Count { get; set; }

        [DataMember(IsRequired = true, Order = 3)]
        public DateTime? EarliestTicketCreationTime { get; set; }

        public Counter() {
            EarliestTicketCreationTime = null;
        }
    }
}
